import React from 'react'
import { Button, Table, Tag, Card } from "antd"
import OaPagination from '@/components/OaPagination';
import OaBreadcrumb from '@/components/OaBreadcrumb';

import { EditOutlined } from '@ant-design/icons';


const columns = [
    {
        title: '标题',
        dataIndex: 'name',
        key: 'name'
    },
    {
        title: '发起者',
        dataIndex: 'age',
        key: 'age',
    },
    {
        title: '类型',
        dataIndex: 'age',
        key: 'age',
    },
    {
        title: '原因',
        dataIndex: 'address',
        key: 'address',
    }, {
        title: '发起时间',
        dataIndex: 'address',
        key: 'address',
    },
    {
        title: '开始日期',
        dataIndex: 'address',
        key: 'address',
    },
    {
        title: '结束日期',
        dataIndex: 'address',
        key: 'address',
    },
    {
        title: '审核领导',
        dataIndex: 'address',
        key: 'address',
    },
    {
        title: '反馈意见',
        dataIndex: 'address',
        key: 'address',
    },
    {
        title: '审核状态',
        key: 'action',
        render: (_, record) => (
            <Tag>审核中 </Tag>
        ),
    },
    {
        title: '处理',
        key: 'action',
        render: (_, record) => (

            <Button type="primary" icon={<EditOutlined />} />
        ),
    },
];

const data = [
    {
        key: '1',
        name: 'John Brown',
        age: 32,
        address: 'New York No. 1 Lake Park',
        tags: ['nice', 'developer'],
    },
    {
        key: '2',
        name: 'Jim Green',
        age: 42,
        address: 'London No. 1 Lake Park',
        tags: ['loser'],
    },
    {
        key: '3',
        name: 'Joe Black',
        age: 32,
        address: 'Sydney No. 1 Lake Park',
        tags: ['cool', 'teacher'],
    },
];

export default function SubAbsent() {
    return (
        <div>
            <OaBreadcrumb></OaBreadcrumb>
            <Card>
                <Table columns={columns} dataSource={data} pagination={false} bordered />
                <OaPagination></OaPagination>
            </Card>
        </div>
    )
}
